package cn.wawi.entity.sys;
import com.fasterxml.jackson.annotation.JsonFormat;

import cn.wawi.common.annotation.TableField;
import cn.wawi.common.annotation.TableName;
/**
 * sys_attach 实体类
 * 2016-12-17 16:10:25
 */
@TableName(value="sys_attach")
public class Attach{

	/**
	 *注释: id
	 */
	@TableField(value="id",isPrimaryKey=true)
	private Integer id;
	/**
	 *注释: 附件名称
	 */
	@TableField(value="name")
	private String name;
	/**
	 *注释: 附件地址
	 */
	@TableField(value="attach_url")
	private String attachUrl;
	/**
	 *注释: 关联id
	 */
	@TableField(value="relation_id")
	private Integer relationId;
	/**
	 *注释: 附件类型
	 */
	@TableField(value="type")
	private String type;
	/**
	 *注释: 创建时间
	 */
	@TableField(value="create_time")
	@JsonFormat(pattern="yyyy-MM-dd hh:mm:ss")
	private java.util.Date createTime=new java.util.Date();
	public void setId(Integer id){
		this.id=id;
	}
	public Integer getId(){
		return id;
	}
	public void setName(String name){
		this.name=name==null?null:name.trim();
	}
	public String getName(){
		return name;
	}
	public void setAttachUrl(String attachUrl){
		this.attachUrl=attachUrl==null?null:attachUrl.trim();
	}
	public String getAttachUrl(){
		return attachUrl;
	}
	public void setRelationId(Integer relationId){
		this.relationId=relationId;
	}
	public Integer getRelationId(){
		return relationId;
	}
	public void setType(String type){
		this.type=type==null?null:type.trim();
	}
	public String getType(){
		return type;
	}
}

